package com.mrjy.integral.dao;

import com.mrjy.common.entity.SignUpGraphicInfo;

import java.util.List;
import java.util.Map;

public interface ISignUpGraphicInfoDao {

    int insert(SignUpGraphicInfo info);

    SignUpGraphicInfo queryById(int id);

    int updateById(SignUpGraphicInfo info);

    //根据ID删除
    int deleteByIds(int[] ids);

    //根据ID禁用、起用
    int updateDisableFlag(SignUpGraphicInfo info);

    /**
     * 通过用户id查询
     *
     * @param userId 用户id
     * @return
     */
    SignUpGraphicInfo queryByUserId(Integer userId);


    List<SignUpGraphicInfo> listPage(SignUpGraphicInfo signInInfo);

    SignUpGraphicInfo selectTodayGraphic(SignUpGraphicInfo info);

    SignUpGraphicInfo selectRandomGraphic(SignUpGraphicInfo info);

    int countListPage(SignUpGraphicInfo info);

    Map<String, Object> queryInfo(SignUpGraphicInfo info);
}
